import Vue from 'vue'
import VueRouter from 'vue-router'
import LoginView from '../views/Login.vue'
import HomeView from '../views/Home.vue'
import OrderView from '../views/Order.vue'
import MyContentView from '../views/MyContent.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'login',
    component: LoginView
  },
  {
    path: '/home',
    name: 'home',
    component: HomeView
  },
  {
    path: '/order',
    name: 'order',
    component: OrderView
  },
  {
    path: '/my',
    name: 'my',
    component: MyContentView
  }
]

const router = new VueRouter({
  routes
})

export default router
